<?php use app\models\Record;?>
<main class="problem"><article style="width: 60%"><div class="ul list transition"><div class="frame list">
<div class="li status-large"><?php echo Record::getStatusColor($record['status']) ?></div>
<?php if (is_array(@$record['info']['testpoints'])):?>
<?php foreach($record['info']['testpoints'] as $id => $testpoint): ?>
<div class="li">
<div class="container container-record">
	<div class="id-text"><b>测试点 #<?php echo $id+1 ?></b></div>
	<div class="status"><b><?php echo Record::getStatusColor($testpoint['status'], '16') ?></b></div>
	<div class="number-text"><b>时间：</b><?php echo $testpoint['time'] ?>ms</div>
	<div class="number-text"><b>内存：</b><?php echo $testpoint['memory'] ?>KB</div>
</div>
<div class="container-info">
	<div class="text"><b>测试点信息</b>:</div>
    <div class="container-text"><?php echo $testpoint['info'] ? $testpoint['info'] : '<无信息>';?></div>
</div>
</div>
<?php endforeach ?>
<?php endif ?>
<?php if (! empty($record['info']['compileinfo'])):?>
	<div class="li">
    	<h3>编译信息</h3>
    	<div class="container-text"><pre class="info"><?php $cinfo = base64_decode($record['info']['compileinfo']); echo htmlspecialchars($cinfo==''?$cinfo:$record['info']['compileinfo']);?></pre></div>
    </div>
<?php endif ?>
    <div class="li">
    	<h3>代码</h3>
        <pre>
        	<code class="<?php echo $record['language_class']?>"><?php echo $record['code'] ?></code>
        </pre>
    </div>
</div></div></article></main>